Skip to content

AsyncSubject.OnCompleted() method

Defined in

Type: AsyncSubject Namespace: System.Reactive.Subjects Assembly: System.Reactive.dll

Applies to

netstandard2.0

Overloads

  • 1. public override void OnCompleted()
  • 2. public void OnCompleted(Action continuation)

1. Overload

public override void OnCompleted()

Summary: Notifies all subscribed observers about the end of the sequence, also causing the last received value to be sent out (if any).

2. Overload

public void OnCompleted(Action continuation)

Summary: Specifies a callback action that will be invoked when the subject completes.

Parameters

NameTypeDescription
continuationActionCallback action that will be invoked when the subject completes.

Exceptions

TypeCondition
System.ArgumentNullExceptioncontinuation is null.